<?php
header("Content-type: text/html; charset=utf-8");
session_start();
include("mysql.inc.php");
include("page.class.php");

if(!$_SESSION['name'] && strpos($_SERVER['REQUEST_URI'], 'demo_order') === false && strpos($_SERVER['REQUEST_URI'], 'login.php') === false){
	echo "<script type='text/javascript'>alert('登录失败！');location.href='login.html';</script>";
}

///////////////////////////////修改部分开始////////////////////////////////
//文章标题
$title = "淘宝小赢家-订单系统";
$des = "淘宝小赢家-订单系统";
$key = "淘宝小赢家-订单系统";

//数据库配置
$dbhost = 'localhost';
$dbuser = 'root';
$dbpassword = '123456';
$dbname = 'ordersystem';

//状态配置
$good_status = array(
	0 => "<font color='red'>未处理</font>",
	1 => "<font color='#CC6600'>电话已确认</font>",
	2 => "<font color='#FF3300'>电话不通</font>",
	3 => "<font color='#996633'>取消订购</font>",
	4 => "<font color='#008b8b'>已发货</font>",
	5 => "<font color='#6b8e23'>交易完成</font>",
	6 => "其它原因",
);
///////////////////////////////修改部分结束////////////////////////////////

$mysql = new mysql($dbhost, $dbuser, $dbpassword, $dbname);